//
//  JWDetailScrollView.m
//  JWMovie
//
//  Created by Jorn.Wu on 15/7/21.
//  Copyright (c) 2015年 Jorn.Wu. All rights reserved.
//

#import "JWDetailScrollViewCell.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MultiFormat.h"

@interface JWDetailScrollViewCell ()


@end

@implementation JWDetailScrollViewCell

- (void)setImageWithUrl:(NSString *)urlStr{
    
    self.backgroundColor = [UIColor clearColor];
    NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlStr]];
    UIImage *image = [UIImage imageWithData:imageData];

    UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.bounds];
    imageView.layer.cornerRadius = 8.f;
    imageView.layer.masksToBounds = YES;
    imageView.image = image;
    
    [self addSubview:imageView];
    
}

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}


@end
